<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <a href="left?id=1">总裁</a>
    <a href="left?id=2">财务主管</a>
    <a href="left?id=4">人事主管</a>
    <a href="left?id=6">员工</a>
    <br><br>
    {foreach $data as $key=>$v}
    <br/>
    <?php
			$a = substr_count($v['path'],'-');
          	$aa = str_repeat('|--', $a);
          	echo $aa;
		?>

    <a href="{$v.p_route}" target="_blank">{$v.p_name}</a>
    {/foreach}
</div>
</body>
</html>